home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Magazin: Amiga-CD 1997 July & August
/
Amiga-CD 1997 #7-8.iso
/
pd-disketten
/
dms-gepackt
/
3_96
/
apd-3-96-3-2.dms
/
apd-3-96-3-2.adf
/
CP5
/
docs
/
demon_link.example
< prev
next >
Wrap
Text File
|
1995-10-21
|
3KB
|
77 lines
/*rx
* DEMON INTERNET Amiga Installation
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* NAME
* link -- Control the state of the AmiTCP connection
* USAGE
* link up|down [news]
* PURPOSE
* This script makes using AmiTCP on a dialup to Demon much easier. You
* can connect/disconnect by entering or . I have
* Alt-F6 set to issue and Alt-F7
* Important variables are stored below. This script is really only
* useful when used with GWCSlip, which is what I recommend for all DIS
* AmiTCP users.
* The NEWS parameter allows you to pull news after connecting too
* NOTES
* -I personally have AmiTCP running all the time (I moved most of the
* startnet script to s:startup-sequence and modified it so that it
* doesn't bring GWCSLIP up or try to grab the serial port). You could
* easily bring AmiTCP up/test for it though I haven't bothered adding
* such tests here... Testing for TCP: is an easy way to do this!
* -When the link is dropped, the routes are also deleted; hopefully this
* should make this script fairly well suited to the PPP device now
* available for AmiTCP.
*/
/* VARIABLES - Modify these for your setup */
myip = "158.152.59.173" /* My IP number */
mydev = "devs:networks/gwcslip.device" /* Slip Device being used */
mydevu = "0" /* Unit Number */
myif = "cslip"||mydevu /* Interface name (amitcp 3.0) */
myhost = "158.152.1.65" /* Gate */
rcmd = "AmiTCP:bin/route"
ifcmd = "AmiTCP:bin/ifconfig"
/* THE SCRIPT PROPER */
address command
arg which news
if which="" then say "No command specified - try UP or DOWN"
if which~="UP" & which~="DOWN" then say "Invalid command '" || which || "' - try UP or DOWN"
if news~="NEWS" & news ~= "AUTONEWS" & news~="" then say "Invalid parameter '" || news || "' - only understand 'news'"
else if which="UP" then do
ifcmd myif myip myhost "netmask 255.255.0.0"
"AmiTCP:bin/online" mydev mydevu
rcmd "add default" myhost
/* The following line tells Control Panel 5 that you are connected */
address cp5port "GO_CONNECTED Newmarket 0638 999 999"
*/ End Of Addition */
"AmiTCP:bin/mailkick post.demon.co.uk handletos logsends"
if news="NEWS" | news="AUTONEWS" then do
say "Slurping news (until it works!)...\n"
"execute AmiTCP:bin/nntptransfer AUTONEWS"
end
end
else if which="DOWN" then do
"AmiTCP:bin/mailkick quit"
ifcmd myif "down"
"AmiTCP:bin/offline" mydev mydevu
/* The following line tells Control Panel 5 that you have disconnected */
address CP5port "GO_DISCONNECTED"
/* End Of Addtion */
rcmd "delete" myhost
rcmd "delete default"
end